<template>
    <transition name="tips">
         <div class="tips">
            <p>{{msg}}</p>
        </div>
    </transition>
</template>

<script>
    export default {
        name:"Tips-Component",
        data(){
            return {

            }
        },
        props:['msg']
    }
</script>

<style scoped>
    .tips{
        width: 32.6vw;
        height: 3.3vw;
        background: rgba(63, 159, 223, 0.781);
        position: fixed;
        left: 35%;
        /* transform: translateX(-50%); */
        text-align: center;
        line-height: 3.3vw;
        top: 3.3vw;
        font-size: 1vw;
        color: #fff;
        transition: 0.4s;
    }
    .tips-enter,.tips-leave-to{
        transform: translateY(-100%);
    }

    .tips-enter-to,.tips-leave{
        transform: translateY(0);
    }

    
</style>